﻿#!/usr/bin/python 
# -*- coding:utf-8 -*-
from mako.template import Template
t = Template(filename='a.txt')      #声明文件模板
data = {"name":"jack","age":"18"}
print(t.render(men = data))          #传递参数